//
//  UIColor+Extension.swift
//  Ccweibo
//
//  Created by 陈锦聪 on 16/3/24.
//  Copyright © 2016年 Coco. All rights reserved.
//

import UIKit

extension UIColor {
    
    class func randomColor() -> UIColor {
        
        return UIColor(red: randomCode(), green: randomCode(), blue: randomCode(), alpha: 1)
    }
    
    class func randomCode() -> CGFloat {
        
        return CGFloat(arc4random_uniform(256)) / 255.0
    }
}
